﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Practices.ObjectBuilder;
using Microsoft.Practices.CompositeWeb;
using WCSFContrib.ECommerceCatalog.BusinessEntities;

namespace WCSFContrib.ECommerceCatalog.Product.Views
{
    public class ProductDetailsPresenter : Presenter<IProductDetailsView>
    {
        public ProductDetailsPresenter()
        {
        }

        public void OnShowProductDetails(Item item)
        {
            View.ItemId = item.ItemId;
            View.ItemImage = item.Image;
            View.ItemName = item.Name;
            View.ItemPrice = item.Price;
            View.ItemQuantity = item.Stock;
            View.ItemCategory = item.Category;
            View.ItemDescription = item.Description;
        }
    }
}




